<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link th:href="@{/css/style.css}" rel="stylesheet" type="text/css" />
  <script type="text/javascript" th:src="@{/js/jquery-1.12.4.js}"></script>
</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>仓库管理</li>
    <li>入库管理</li>
    <li>添加入库</li>
  </ul>
</div>
<div class="formbody">
  <form action="/erp1/rep/rkware/RHadd" method="post">
  <div class="formtitle"><span>入库信息</span></div>
  <ul class="forminfo">
    <li>
      <label>采购单编号</label>
      <select name="rkIndent"  class="dfinput" >
        <option value="0">请选择</option>
        <option th:each="p :${purchase}" th:value="${p.purchaseId}" th:text="${p.purchaseId}"></option>
      </select>
      &nbsp;&nbsp;
      <a id="xq"  href=""  title="点击查看采购单详细信息" class="tablelink">详情</a>
      <i>必须是审核通过的采购单</i>
    </li>
    <script>
      $("select[name=rkIndent]").change(function () {
        var rkxq="/erp1/purchase/purchase/viewPurchase?purchaseId="+$(this).val();
        $("#xq").prop("href",rkxq);
      })
    </script>
    <li>
      <label>入库</label>
      <select name="warehouseId" class="dfselect">
          <option value="0">请选择</option>
        <option th:each="w :${warehouses}" th:value="${w.id}" th:text="${w.cName}"></option>
      </select>
      <i>必选</i>
    </li>
    <li>
      <label>入库时间</label>
      <input name="rkDate" th:value="${#dates.format(session.date,'yyyy-MM-dd')}"  readonly="readonly" type="text" class="dfinput" />
      <i>必填</i>
    </li>
    <li>
      <label>出库人</label>
      <input type="hidden" name="userId" th:value="${session.currUser.uId}">
      <input type="text"  th:value="${session.currUser.uname}" readonly="readonly" class="roinput" />
      <i>不能编辑</i>
    <li>
      <label>&nbsp;</label>
      <input name="" type="submit" class="btn" value="确认"/>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="" type="button" class="btn" value="返回" onclick="window.history.go(-1)"/>
    </li>
  </ul>
  </form>
</div>
</body>
</html>
